package com.pti.usermanager.web.dto.response;

import com.pti.usermanager.enums.ConstantCode;

/**
 * @ClassName: ResultResponse
 * @Author: liumengyao
 * @Description: 操作通用返回类
 * @Date: 2019/1/17
 */
public class ResultResponse{

    private String code = ConstantCode.DTO.SUCESS_CODE;

    private String message = ConstantCode.DTO.SUCESS_MSG;

    private Object data;

    private Integer total;

    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "ResultResponse{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                ", total=" + total +
                ", token='" + token + '\'' +
                '}';
    }
}
